package Operation;

import Book.Book;
import Book.BookList;

/**
 * Description:
 * Date: 2025-10-18
 * Time: 18:58
 */
public class ShowBook implements IOperation{
    public void work(BookList bookList) {
        System.out.println("显示图书！！！");

        for (int i = 0; i < bookList.getCurrentSize(); i++) {
            Book book = bookList.getBooks(i);
            System.out.println(book.toString());
        }
    }
}
